package cn.lili.modules.config;

import cn.wildfirechat.sdk.AdminConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;


@Configuration
public class ImConfig implements ApplicationRunner {


    @Value("${com.imSecretKey:wendi666qwertghjkldsa}")
    private String imSecret;

    @Value("${com.imAdminUrl:http://service-im.prod-local:18080}")
    private String imAdminUrl;

    @Override
    public void run(ApplicationArguments args) {
        AdminConfig.initAdmin(imAdminUrl, imSecret);
    }
}
